/*
 * GameCTest.java
 * JMUnit based test
 *
 * Created on May 27, 2009, 8:58:06 PM
 */

package DZBall;



import java.io.IOException;
import javax.microedition.lcdui.game.Sprite;
import jmunit.framework.cldc10.*;

/**
 * @author dave
 */
public class GameCTest extends TestCase {
    
    public GameCTest() {
        //The first parameter of inherited constructor is the number of test cases
        super(4,"GameCTest");
    }            

    public void test(int testNumber) throws Throwable {
        switch (testNumber) {
            case 0:
                testPosWalls();
                break;

            default:
                break;
        }
    }


    public void testPosWalls() throws AssertionFailedException, IOException {
        System.out.println("Posicion de las paredes (MARCO)");
        GameC instance = new GameC();
        Sprite walls = instance.getWalls();
        int resultadoEsperado = instance.getWidth()/2;
        int resultado = walls.getRefPixelX();
        assertEquals(resultadoEsperado, resultado);

    }
    



}
